﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JeanFish.WeChat
{
    public abstract class Message
    {
        public string ToUserName { get; set; }
        public string FromUserName { get; set; }
        public long CreateTime { get; set; }
        public abstract string MsgType { get; }
        public long MsgId { get; set; }
    }
    public class TextMessage:Message
    {

        public override string MsgType
        {
            get { return "text"; }
        }
        public string Content { get; set; }
    }
}
